EXE Platform
Select Execution|Platform Configuration to open the Platform Configuration dialog. Click Create a platform configuration and select EXE Platform.
Working directory
Select the path, for example to the SUT-C-Code with Scaling folder you have copied from the examples and pasted next to your TPT project.
Executable
Path to the executable file that is to be tested.
Setup
Mapping
Select EXE-Mapping for the scaling information.
Click Generate the test frame C-code to generate the executable.
Open the generated C code file for editing. Use an editor of your choice:
- In line 15 add
#include "lights_control.h
as your header file for the lights-controller. - In line 39 add
lights_control_cycle();
as the function call that calculates the headlight according to light_switch and light_intensity.
Now the test harness is ready for compilation. You may use the make.bat file in the Output folder together with MinGW or you may use the Microsoft compiler alternatively.
After the compilation, you should have the testframe.exe
in the Output folder and you should be able to execute TPT tests.